<?php
/**
* Api_View_Helper_ImageHelper class for Boomerang Referral Network
*
* Api_View_Helper_ImageHelper is the view helper class which is used to get the 
* path of the images which are specific to any module. To use this view helper
* there must have directories which have exact name relevant to the module at images dir.
* 
* @package      Api_View_Helper
* @copyright    Copyright (c) 2011-2012 Boomerang Referral Network
* @version      $Id: ImageHelper.php v 1.0.0$
* @since        Class available since Release 1.0.0
* @author       Anindya Roy Chodhury <anindya23@gmail.com>
*/
class Api_View_Helper_ImageHelper extends Zend_View_Helper_Abstract
{
    /**
     * Get image directory path relevant to module
     * 
     * @return string 
     */
    public function imageHelper()
    {
        $request = Zend_Controller_Front::getInstance()->getRequest();
        $moduleName = $request->getModuleName();
        $imagePath = $this->baseUrl() . "/images/" . $moduleName;
        return $imagePath;
    }
}